package com.itlong.cloud.enumerate;

/**
 * <desc>
 *      活跃用户查询方式枚举
 * </desc>
 * @createDate  2019/11/5
 */
public enum OperateUserActiveQueryTypeEnum {

    YEAR("months",12),
    MONTH("days",30),
    WEEK("weeks",7),
    DAY("hours",24);


    private Integer unitTimeQuantity;   //单位时间数量
    private String timeUnit;            //时间单位

    OperateUserActiveQueryTypeEnum(String timeUnit,Integer unitTimeQuantity ){
        this.unitTimeQuantity=unitTimeQuantity;
        this.timeUnit=timeUnit;
    }
    /**
     * <desc>
     *      获取时间单位
     * </desc>
     * @createDate  2019/11/5
     */
    public String getTimeUnit(){
        return this.timeUnit;
    }
    /**
     * <desc>
     *      获取单位时间数量
     * </desc>
     * @createDate  2019/11/5
     */
    public Integer getUnitTimeQuantity(){
        return this.unitTimeQuantity;
    }
}
